#ifndef SYNCDIALOG_H
#define SYNCDIALOG_H


#include <QtGui>
#include "syncmanager.h"
#include "ui_syncform.h"



class SyncDialog : public QWidget, public Ui_SyncDialog
{
    Q_OBJECT
    
    public:
        SyncDialog( QWidget *parent = 0, Qt::WFlags f = 0 );
        ~SyncDialog();

	signals:
		//===== for syncManager
		void connectSignal(QString ip, QString port);
		void disconnectSignal();
		//===== for menu
		void statusSignal(int status); // support status: SYNCED, DISCONNECT
		

    public slots:
		void updateStatus(int status);
		void on_syncButton_clicked();

    private slots:		
		void updateView(QString message);

    private:
		int status;
};

#endif

